package com.globefrog.example.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author : Globe-Frog
 * @date : Create in 2021/7/7
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("`user`")
public class User implements Serializable {

  private static final long serialVersionUID = 4740926615020354162L;

  @TableId(type = IdType.ID_WORKER_STR)
  @TableField("id")
  private String id;

  @TableField("name")
  private String name;

  @TableField("sex")
  private Boolean sex;

  @TableField("age")
  private Integer age;

  @TableField("created")
  private String created;

  @TableField("updated")
  private String updated;
}
